package cn.tedu._07springaop.egaop;

import org.springframework.stereotype.Component;

@Component
public class CartServiceImpl implements CartService {
    public boolean addCart(String cartDetail) {
        if (cartDetail == null) {
            throw new IllegalArgumentException("必须添加东西！！");
        }
        return true;
    }
}
